<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--测试接口--%>
<%
    JSONObject jsonData = new JSONObject();
    String id = Util.null2String(request.getParameter("id"));
    RecordSet rs = new RecordSet();
    rs.executeQuery("select imageid from fnainvoiceledger where id=?", id);
    rs.next();
    String imageid = Util.null2String(rs.getString("imageid"));
    rs.executeQuery("SELECT docid FROM docimagefile WHERE imagefileid=?",imageid);
    rs.next();
    jsonData.put("docid",Util.null2String(rs.getString("docid")));
    out.print(jsonData.toJSONString());
%>





